﻿using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Pay.Data;
using Pay.DTO;
using Pay.TO;

namespace Pay.IService {
	public interface ITopicService {
		/// <summary>
		/// 获取专题列表
		/// </summary>
		/// <returns>The verifyed.</returns>
		/// <param name="query">Identifier.</param>
		PagedResult<topic_dto> GetTopics(TopicQuery query);
        /// <summary>
        /// 获取列表
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        List<topic_dto> GetTopicList(TopicQuery query);
        /// <summary>
        /// 获取专题信息
        /// </summary>
        /// <returns>The verifyed.</returns>
        /// <param name="query">Identifier.</param>
        topic_dto GetTopic(long id);
		/// <summary>
		/// 修改专题信息
		/// </summary>
		/// <returns>The verifyed.</returns>
		/// <param name="dto">Identifier.</param>
		int AlterTopic(topic_dto dto);
		/// <summary>
		/// 保存专题信息
		/// </summary>
		/// <returns>The verifyed.</returns>
		/// <param name="dto">Identifier.</param>
		int SaveTopic(topic_dto dto);
		/// <summary>
		/// 保存/编辑专题--应用端
		/// </summary>
		/// <param name="dto"></param>
		/// <returns></returns>
		ApiResultMessage Save(topic_model dto);
		/// <summary>
		/// 删除专题信息
		/// </summary>
		/// <returns>The verifyed.</returns>
		/// <param name="id">Identifier.</param>
		int DeleteTopic(long id);

		/// <summary>
		/// 获取专题列表
		/// </summary>
		/// <returns>The verifyed.</returns>
		/// <param name="query">Identifier.</param>
		List<topic_list> GetGroup(topic_query_index query);
	}
}
